package com.headingdata.newpkg;

public class Car {

    private int id;
    private String name;
    private String brand;

    public Car() {
    }

    public Car(int id, String name, String brand) {
        this.id = id;
        this.name = name;
        this.brand = brand;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }


    public void printInfo(){
        System.out.println("本车编号:" + id);
        System.out.println("本车名称:" + name);
        System.out.println("本车品牌:" + brand);
    }
}
